let counter = 0
let arrays = [[], [], [], []]

function pushItem(current, arrIndex) {
    current % 4 === arrIndex && arrays[arrIndex].push(++counter)
}

for (let i = 0; i < 100; i++) {
    pushItem(i, 0)
    pushItem(i, 1)
    pushItem(i, 2)
    pushItem(i, 3)
}

console.log(arrays);
